package com.szm.userserver.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

@Data
public class UserMongo implements Serializable {
    @Id
    private String _id;
    private int id;
    private String name;
    private int age;

    public UserMongo(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }
}
